<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Vue3基础语法</title>
</head>
<body>
<div id="app">
    <p>{{ reversedMessage }}</p>
</div>
</body>
<script src="../libs/vue.global.min.js"></script>
<script>
    const app = Vue.createApp({
        data() {
            return {
                message: 'Hello Vue3.0!'
            };
        },
        computed:{
            reversedMessage() {
                return this.message.split('').reverse().join('');
            }
        }
    }).mount("#app")
</script>
</html>